import {
  createRouter,
  createWebHashHistory,
  createWebHistory,
} from "vue-router";

const router = createRouter({
  history:
    import.meta.env.VITE_PUBLIC_BASE == "/mbm-gpt"
      ? createWebHistory(import.meta.env.BASE_URL)
      : createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "mcd",
      component: () => import("../views/mcd/index.vue"),
    },
    {
      path: "/singleLogin",
      name: "singleLogin",
      component: () => import("../views/singleLogin/index.vue"),
    },
  ],
});

export default router;
